import useExternal2 from "../hooks/useExternal2";
import React from "react";
import instance from "../instance";
import { jsx as _jsx } from "react/jsx-runtime";
var sdkContext = /*#__PURE__*/ React.createContext(null);
function SdkProvider(props) {
    var paypalAttr = useExternal2(instance.payConfig.paypalUri, {
        type: "js",
        keepWhenUnused: true,
        js: {
            async: true
        }
    });
    var googlepayAttr = useExternal2("https://pay.google.com/gp/p/js/pay.js", {
        type: "js",
        keepWhenUnused: true
    });
    return /*#__PURE__*/ _jsx(sdkContext.Provider, {
        value: {
            paypal: paypalAttr,
            googlepay: googlepayAttr
        },
        children: props.children
    });
}
export { sdkContext };
export default SdkProvider;

 //# sourceMappingURL=sdk-provider.js.map